<?php
use think\facade\Route;
/**
 * @model customer
 * @author yangqi
 * @create time 2019年11月25日23:09:59
 * 
 */
Route::group('admin' ,function(){
    //获取用户列表
    Route::get('customers' ,'Admin/listCustomer');

    Route::get('customersV2' ,'Admin/listCustomerV2');

    Route::get('customerExcel' ,'Admin/listCustomerExcel');
    //获取用户数据
    Route::get('customer' ,'Admin/getCustomer');
    //分配用户
    Route::post('allot' ,'Admin/allotCustomer');
    //获取客户分配的客服id列表
    Route::get('allot' ,'Admin/getAllotCustomer');
    //获取客户问卷信息
    Route::get('getCustomerQuestionnaire' ,'Admin/getCustomerQuestionnaire');
    //交接客户
    Route::post('handover' ,'Admin/StaffHandover');
    //获取话术分类
    Route::get('replyTypes' , 'Admin/listReplyType');
    //创建话术分类
    Route::post('addReplyType' ,'Admin/addReplyType');
    //修改话术分类
    Route::post('updateReplyType' ,'Admin/updateReplyType');
    //删除话术分类
    Route::get('delReplyType' ,'Admin/delReplyType');
    //获取话术列表
    Route::get('reply' ,'Admin/listReply');
    //生成话术
    Route::post('addReply' ,'Admin/addReply');
    //修改话术
    Route::post('updateReply' ,'Admin/updateReplys');
    //修改话术
    Route::get('delReply' ,'Admin/delReply');
    //获取调查问卷列表
    Route::get('questionnairs' ,'Admin/listQuestionnair');
    //获取调查问卷详情
    Route::get('questionnair' ,'Admin/getQuestionnair');
    //添加调查问卷
    Route::post('addQuestionnair' ,'Admin/addQuestionnair');
    //修改调查问卷
    Route::post('updateQuestionnair' , 'Admin/updateQuestionnairs');
    //删除调查问卷
    Route::get('delQuestionnair' ,'Admin/delQuestionnair');
    //获取调查问卷配置
    Route::get('questionnairConfig' ,'Admin/getQuestionnairConfig');
    //设置调查问卷设置
    Route::post('questionnairConfig' ,'Admin/setQuestionnairConfig');

    Route::post('importExcelCustomer' ,'Admin/importExcelCustomer');

    Route::post('importCustomer' ,'Admin/importCustomer');

    Route::get('getExcelPath' ,'Admin/getExcelPath');


    Route::post('updateUserInfo' ,'Admin/updateUserInfo');
});
